package com.webside.subject.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.webside.series.model.Bdictionary;
import com.webside.subject.model.SubjectEntity;
import com.webside.util.PageUtil;


public interface SubjectService {
	/**
	 * 查询所有专题
	 * @return
	 */
	List<SubjectEntity> queryAllSubject();
	//根据map 查
	List<SubjectEntity> selectSubjectByMap(Map<String, Object> parameters);
	/**
	 * 删除
	 */
	int deleteSubject(List<String> subjectId);
	/**
	 * 修改
	 * @param subject
	 * @return
	 */
	int updateSubject(SubjectEntity subject);
	/**
	 * 添加
	 * @param subject
	 * @return
	 */
	int addSubject(SubjectEntity subject);
	int updateAddSubject(SubjectEntity subject);
	/**
	 * 查询所有
	 * @return
	 */
	List<String> selectSubjectByName();
	/**
	 * 查询当页
	 * @return
	 */
	List<SubjectEntity> queryListByPage(Map<String, Object> parameters);
	/**
	 * 集数
	 */
	//分页及按关键词搜索
  	public List<HashMap<String,Object>> querySeries(PageUtil pageUtil, String sort,String code);
  	//根据subject 查
	SubjectEntity selectSubjectBySubject(SubjectEntity subject);
	//修改
	void updateSubjectByMap(Map<String, Object> parameters);
}
